package com.scau.wrongtitle.repository;

import com.scau.wrongtitle.domin.TagTitleRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface TagTitleRecordRepository extends JpaRepository<TagTitleRecord, String> {

    @Query(value = "select questionTag from TagTitleRecord where questionId = :id")
    List<String> findByQuestionId(@Param("id") long id);
}
